package engine.social
{
	//import com.facebook.graph.*;
	
	public class RxFriend
	{
		protected var m_id:String;
		protected var m_name:String;
		protected var m_firstName:String;
		protected var m_installed:Boolean;
		protected var m_playerIndex:int;
		protected var m_isRealFriend:Boolean;
		private static var m_localFriend:RxFriend;
		
		public function RxFriend()
		{
			this.m_playerIndex = -1;
		}
		
		public static function CreateFriendFromObject(param1:Object, param2:Boolean = false, param3:Boolean = true) : RxFriend
		{
			if (!param1)
			{
				return null;
			}
			var _loc_4:* = new RxFriend();
			_loc_4.m_id = param1.id;
			_loc_4.m_name = param1.name;
			_loc_4.m_firstName = param1.first_name;
			_loc_4.m_installed = param1.installed || param2;
			_loc_4.m_isRealFriend = param3;
			return _loc_4;
		}
		
		public function GetInstalled() : Boolean
		{
			return this.m_installed;
		}
	}
}